import request from '@/utils/request'

// 查询隔离人员信息列表
export function listSegregater(query) {
  return request({
    url: '/prevention/segregater/list',
    method: 'get',
    params: query
  })
}

export function listSegregater2(query) {
  return request({
    url: '/prevention/segregater/list2',
    method: 'get',
    params: query
  })
}

// 查询隔离人员信息详细
export function getSegregater(segreId) {
  return request({
    url: '/prevention/segregater/' + segreId,
    method: 'get'
  })
}

// 新增隔离人员信息
export function addSegregater(data) {
  return request({
    url: '/prevention/segregater',
    method: 'post',
    data: data
  })
}

// 修改隔离人员信息
export function updateSegregater(data) {
  return request({
    url: '/prevention/segregater',
    method: 'put',
    data: data
  })
}

// 删除隔离人员信息
export function delSegregater(segreId) {
  return request({
    url: '/prevention/segregater/' + segreId,
    method: 'delete'
  })
}
